<template>
  <div class="weekend-body">
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item" v-for="item of weekendList" :key="item.id">
        <div class="item-img-wrapper">
          <img class="item-img" :src="item.imgUrl" alt="">
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>

      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: "HomeWeekend",
    data () {
      return{

      }
    },
    props:{
      weekendList:Array
    }
  }
</script>

<style lang="stylus" scoped>
  @import "~style/varibles.styl"
  @import "~style/mixins.styl"
  .weekend-body
    background: #f5f5f5
    .title
      line-height:.8rem
      text-indent .3rem
      padding-top:.1rem
      font-size .28rem
      color #212121
      .title-img
        display: inline-block
        width .3rem
        height: .3rem
    .item

      .item-img-wrapper
        width 100%
        height 0
        overflow: hidden
        padding-bottom: 33.44%
        .item-img
          display block
          width 100%
      .item-info
        padding .2rem
        min-width 0
        .item-title
          font-size .3rem
          height .5rem
          line-height .5rem
          ellipsis()
        .item-desc
          font-size .22rem
          line-height:.4rem
          color #666
          ellipsis()

</style>
